package org.lab.codis;

import io.codis.jodis.JedisResourcePool;
import io.codis.jodis.RoundRobinJedisPool;
import redis.clients.jedis.Jedis;

/**
 * Created by lichengwen on 16/8/29.
 */
public class Main
{
    public static void main(String[] args)
    {
        JedisResourcePool jedisPool = RoundRobinJedisPool.create()
                .curatorClient("10.94.106.63:2181", 30000).zkProxyDir("/zk/codis/db_codis-test/proxy").build();
        try (Jedis jedis = jedisPool.getResource()) {
//            jedis.set("foo", "bar");
            String value = jedis.get("asdf");
            System.out.println(value);
        }
    }
}
